/* 声明字体图标 */
@font-face {
    font-family: 'icomoon';
    src:  url('../fonts/icomoon.eot?acwz57');
    src:  url('../fonts/icomoon.eot?acwz57#iefix') format('embedded-opentype'),
      url('../fonts/icomoon.ttf?acwz57') format('truetype'),
      url('../fonts/icomoon.woff?acwz57') format('woff'),
      url('../fonts/icomoon.svg?acwz57#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
  }
body {
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    min-width: 320px;
    /* background-color: #ccc; */
    font-size: 14px;
    /* height: 3000px; */
}
* {
    box-sizing: border-box;
}
/* 清除表单默认颜样式 */
input {
    outline: none;
    -webkit-appearance: none;
    border: 0;
}
/* 去除超链接的默认样式 */
a {
    text-decoration: none;
    color: #666;
}
/* 消除列表的默认样式 */
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 设置头部样式 */
.search {
    display: flex;
    position: fixed;
    width: 100%;
    height: 44px;
    max-width: 640px;
    min-width: 320px;
}
.search .input {
    position: relative;
    overflow: hidden;
    flex: 1;
    /* background-color: #fff; */
    border-radius: 22px;
    text-align: center;
    margin: 8px 51px 8px 12px;
    background-color: rgba(236, 236, 237);
}
.search .input .glass {
    position: absolute;
    left: 15px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: url(../images/cript_sprites.png) no-repeat 0  0;
    background-size: 21px auto;
    /* background-color: rgb(236, 236, 237); */
}
/* 设置表单样式 */
.search .input input {
    width: 100%;
    height: 100%;
    line-height: 22px;
    margin-left: 40px;
    color: #666;
    /* font-size: 14px; */
    background-color: rgb(236, 236, 237);
}
/* .search .input input::before {  
    content: "";
    display: inline-block;
    position: absolute;
    left: 15px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: url(../images/cript_sprites.png) no-repeat 0 0;
    background-size: 21px auto;
} */
.search .mine {
    position: absolute;
    right: 0;
    top: 0;
    width: 51px;
    height: 44px;
    /* background-color: blue; */
    text-align: center;
}

/* 设置搜索右侧样式 */
.search .mine a::before {
    position: absolute;
    top: 6px;
    left: 14px;
    content: "";
    display: inline-block;
    width: 20px;
    height: 22px;
    background: url(../images/cript_sprites.png) no-repeat 0 -37px;
    background-size: 21px auto;
}
.search .mine a span {
    position: absolute;
    display: inline-block;
    width: 100%;
    bottom: 2px;
    left: 1px;
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;
    /* text-align: center; */
}
/* 设置轮播图样式 */
.banner {
    width: 100%;
    /* height: 80px; */
    /* background-image: url(../images/banner.jpg) */
}
.banner img {
    width: 100%;
    background-size: auto 100px;
    vertical-align: middle;
}
/* 设置分类样式 */
.classes {
    display: flex;
    /* position: absolute; */
    top: -45px;
    display: flex;
    /* width: 95.37%; */
    /* width: 100%; */
    height: 64px;
    margin: 0 12.5px;
    background-color: #fff;
    border-radius: 8px;
    justify-content: center;
    /* z-index: 9; */
}

.classes a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
}
.classes a span:nth-child(1) {
    flex: 2;
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url(../images/classes.png) no-repeat 0 0;
    background-size: 40px auto;
}
.classes a span {
    flex: 1;
    line-height: 15px;
    font-size: 12px;
    color:  #222;
}
/* .classes a span::before {
    position: absolute;
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url(../images/classes.png) no-repeat 0 0;
    background-size: 40px auto;
} */
.classes a:nth-child(2) span:nth-child(1) {
    background-position: 0 -38px;
}
.classes a:nth-child(3) span:nth-child(1) {
    background-position: 0 -78px;
}
.classes a:nth-child(4) span:nth-child(1) {
    background-position: 0 -118px;
}
.classes a:nth-child(5) span:nth-child(1) {
    background-position: 0 -158px;
}
/* 设置菜单样式 */
/* .menu {
    width: 100%;
    overflow: hidden;
    margin: 10px 12.5px 0;
    border-radius: 8px;
}
.menu ul {
    display: flex;
    height: 65px;
}
.menu ul li:nth-child(1) {
    flex: 4;
    width: 159px;
    height: 100%;   
    line-height: 65px;
    padding-left: 15px;
    background: url(../images/nav1.png) no-repeat bottom right;
    background-size: 73px auto;
    border-right: 1px solid #fff;
    box-sizing: border-box;
    background-color: rgb(250, 100, 85);
}
.menu ul li:nth-child(2) {
    flex: 3;
    width: 119px;
    height: 100%;
    border-right: 1px solid #fff;
    text-align: center;
    line-height: 65px;
    background: url(../images/nav11.png) no-repeat bottom left;
    background-color: rgb(251,118,82);
    background-size: 37px auto;
}
.menu ul li:nth-child(3) {
    flex: 6;
    text-align: center;
    line-height: 65px;
    width: 236px;
    background: url(../images/nav4.png) no-repeat bottom right;
    background-color: rgb(255,191,74);
    background-size: 280px auto;
} */
.menu {
    overflow: hidden;
    margin: 10px 12.5px;
    border-radius: 8px;
}
.menu div {
    display: flex;
    height: 65px;
    /* background-color: pink; */
    box-sizing: border-box;
}
.menu div:nth-child(2) {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}
.menu div span {
    line-height: 65px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}
.menu div span:nth-child(n+2) {
    text-align: center;
}
/* 设置每一个子元素的样式 */
.menu div span:nth-child(1) {
    flex: 1.5;
    padding-left: 25px;
    background: url(../images/nav1.png) no-repeat bottom right;
    background-size: 73px auto;
    background-color: rgb(250, 100, 85);
}
.menu div span:nth-child(2) {
    flex: 1;
    background: url(../images/nav11.png) no-repeat bottom left;
    background-color: rgb(251,118,82);
    background-size: 37px auto;
}
.menu div span:nth-child(3) {
    flex: 2;
    text-align: center;
    background: url(../images/nav4.png) no-repeat bottom right;
    background-color: rgb(255,191,74);
    background-size: 280px auto;
}
/* 为前两个添加右边框 */
.menu div span:nth-child(n+2) {
    border-left: 1px solid #fff;
}
/* 设置第二行 */
.menu div:nth-child(2) span:nth-child(1) {
    background: url(../images/nav2.png) no-repeat bottom right;
    background-size: 80px auto;
    background-color: rgb(76, 150, 237);
}
.menu div:nth-child(2) span:nth-child(2) {
    background: url(../images/nav22.png) no-repeat bottom left;
    background-size: 80px auto;
    background-color: rgb(79, 164, 237);
}
.menu div:nth-child(2) span:nth-child(n+3) {
    background-image: none;
    background-color: rgb(80, 171, 237);
}

.menu div:nth-child(n+2) span:nth-child(n+3) {
    flex: 1;
}
/* 设置第三行样式 */
.menu div:nth-child(3) span:nth-child(1) {
    background: url(../images/nav3.png) no-repeat bottom right;
    background-size: 97px auto;
    background-color: rgb(62, 197, 156);
}
.menu div:nth-child(3) span:nth-child(2) {
    background: url(../images/nav32.png) no-repeat bottom left;
    background-size: 61px auto;
    background-color: rgb(80, 204, 128);
}
.menu div:nth-child(3) span:nth-child(n+3) {
    background-image: none;
    background-color: rgb(93, 208, 109);
}
/* 设置向导样式 */
.guide {
    display: flex;
    /* background-color: pink; */
    margin: 0 12.5px;
    /* width: 100%; */
    flex-wrap: wrap;
}
.guide li {
    height: 53px;
    width: 20%;
    line-height: 20px;
    background-color: #fff;
    text-align: center;
    font-size: 10px;
    color: #222;
}
.guide li::before {
    content: "";
    display: table;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    margin-top: 5px;
    background: url(../images/guide.png) no-repeat 0 0;
    background-size: 28px auto;
}
.guide li:nth-child(2)::before {
    background-position: 0 -28px;
}
.guide li:nth-child(3)::before {
    background-position: 0 -56px;
}
.guide li:nth-child(4)::before {
    background-position: 0 -84px;
}
.guide li:nth-child(5)::before {
    background-position: 0 -112px;
}
.guide li:nth-child(6)::before {
    background-position: 0 -140px;
}
.guide li:nth-child(7)::before {
    background-position: 0 -168px;
}
.guide li:nth-child(8)::before {
    background-position: 0 -196px;
}
.guide li:nth-child(9)::before {
    background-position: 0 -224px;
}
.guide li:nth-child(10)::before {
    background-position: 0 -252px;
}
/* 设置我的样式 */
.min {
    display: flex;
    height: 60px;
    margin: 10px 12.5px;
    border-top: 1px solid #c2c2c2;
    border-bottom: 1px solid #c2c2c2;
}
.min div {
    display: flex;
    flex: 1;
    text-align: center;
    /* line-height: 70px; */
    flex-direction: column;
}
.min div a {
    flex: 1;
}
.min div a:nth-child(1) {
    font-family: 'icomoon';
    text-align: center;
    margin-top: 5px;
    line-height: 30px;
    color: #666;
    font-size: 24px;
    /* background-color: pink; */
    /* display: inline-block; */
}
.mine div a:nth-child(2) {
    color: #333;
    font-size: 14px;
} 
/* 设置底部样式 */
footer {
    flex-direction: column;
    margin: 3px 12.5px;
    padding: 10px 50px;   
}
footer div {
    display: flex;
    /* margin: 5px auto; */
    justify-content: center;
} 
footer div a {
    color: #666;
}
/* 为第二个起添加左边框 */
footer div a:nth-child(n+2) {
    border-left: 1px solid #666;
}
/* 将第一个添加右内边距 */
footer div a:nth-child(1) {
    padding-right: 15px;
}
/* 将第三个添加左内边距 */
footer div a:nth-child(3) {
    padding-left: 15px;
}
/* 为第二个添加前后字体图标 */
footer div a:nth-child(2)::before {
    font-family: 'icomoon';
    content: "";
    padding-left: 15px;
    padding-right: 10px;

}
footer div a:nth-child(2)::after {
    font-family: 'icomoon';
    content: "";
    padding-right: 15px;
}
/* 设置最后一行样式 */
footer div:nth-child(2) {
    margin-top: 15px;
    color: #999;
}
footer div:nth-child(2) span:nth-child(1) {
    border-right: 1px solid #999;
    padding-right: 10px;
}
footer div:nth-child(2) span:nth-child(2) {
    padding-left: 10px;
}